import { createStore } from 'vuex';

export default createStore({
  state: {
    menu: [
      { path: '/index', name: '首页' },
      { path: '/a', name: 'a页面' },
      { path: '/b', name: 'b页面' },
      {
        name: '用户管理',
        path: '/user',
        key: 'user',
        children: [
          {
            path: '/aa',
            name: '用户列表',
          },
          {
            path: '/bb',
            name: '添加用户',
          },
        ],
      },
    ],
  },
  getters: {},
  mutations: {},
  actions: {},
  modules: {},
});
